package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 经营业绩考核补充表
 * @author: gangan
 * @create: 2020-05-29 18:39
 */
@Data
@TableName("pf_business_replenish")
@EqualsAndHashCode(callSuper = true)
public class BusinessReplenish extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 单据编码
     */
    private String code;

    /**
     * 填报年月
     */
    private String fillingMonth;

    /**
     * 填报单位
     */
    private String fillingUnitId;

    /**
     * 本年初归属于母公司的净资产
     */
    @TableField(value = "net_worth",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal netWorth;

    /**
     * 市场化运作资产净利润
     */
    @TableField(value = "net_asset_profit",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal netAssetProfit;

    /**
     * 人工成本总额
     */
    @TableField(value = "total_labor_cost",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal totalLaborCost;

    /**
     * 计划年度营业收入
     */
    @TableField(value = "plan_annual_revenue",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal planAnnualRevenue;

    /**
     * 特定工作任务
     */
    private String specificTask;

    /**
     * 特定工作任务 得分值
     */
    @TableField(value = "score",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal score;

    /**
     * 党建综合指标 分项得分 12月才有
     */
    @TableField(value = "party_score",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal partyScore;

    /**
     * 党建综合指标 文本描述
     */
    private String partyDescribe;

    /**
     * 特别项目加分 分项得分 12月才有
     */
    @TableField(value = "special_projects_score",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal specialProjectsScore;

    /**
     * 特别项目加分 文本描述
     */
    private String specialProjectDescribe;

    /**
     * 保值增值率 12月份才有
     */
    private BigDecimal hedgeRadio;

    /**
     * 审批人
     */
    private String approvedUser;

    /**
     * 审批时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    private Date approvedTime;

    /**
     * 审批意见
     */
    private String approvedOpinion;

    /**
     * 流程实例id
     */
    private String formType;

}
